﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS.Infrastructure.Dto.Request.Epaylinks
{
    /// <summary>
    /// 注册账户信息
    /// </summary>
    public class EpaylinksOpenAccountInfo
    {
        /// <summary>
        /// 账户类型，1：对公账户 2：法人账户，merchantType=2、4、9 时，只能填 1；merchantType=1、3 或 soleInvestor=1，只能填 2，长度限制为 2
        /// </summary>
        [MaxLength(2)]
        public string OpenAccountType { get; set; }

        /// <summary>
        /// 账户名，长度限制为 40
        /// </summary>
        [MaxLength(40)]
        public string LicenceAccount { get; set; }

        /// <summary>
        /// 账号，长度限制为 40
        /// </summary>
        [MaxLength(40)]
        public string LicenceAccountNo { get; set; }

        /// <summary>
        /// 开户银行，长度限制为 40
        /// </summary>
        [MaxLength(40)]
        public string LicenceOpenBank { get; set; }

        /// <summary>
        /// 开户支行，openAccountType=1 时必填，长度限制为 40
        /// </summary>
        [MaxLength(40)]
        public string? LicenceOpenSubBank { get; set; }

        /// <summary>
        /// 证明文件（照片），文件标识（fileID），限图片，参考附件上传。企业商户必传开户许可证、印鉴卡、打印银行资料盖章
        /// </summary>
        public string? OpeningLicenseAccountPhoto { get; set; }
        public string? OpeningLicenseAccountPhotoURL { get; set; }
    }
}
